class BaseResponse<T> {
  T data;
  int code;
  String msg;

  BaseResponse({
    required this.data,
    required this.code,
    required this.msg,
  });

  factory BaseResponse.fromJson(Map<String, dynamic> json) => BaseResponse(
        data: json["data"],
        code: json["code"],
        msg: json["msg"],
      );

  Map<String, dynamic> toJson() => {
        "data": data,
        "code": code,
        "msg": msg,
      };
}
